package com.xrit.sunnyday.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xrit.sunnyday.dao.UserDao;
import com.xrit.sunnyday.pojo.UserInfo;
import com.xrit.sunnyday.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * 类名称: UserServiceImpl
 * 类描述:TODO
 * 创建人: czb
 * 创建时间:2022/7/6 上午 11:52
 * Version 1.0.0
 */
@Service(interfaceClass = UserService.class)
@Transactional
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public UserInfo findByUserName(String username) {
        return userDao.findByUserName(username);
    }
}
